package com.sky.service.admin;

import com.sky.dto.CategoryDTO;
import com.sky.pojo.Category;

import java.util.List;

public interface CategoryService {

    List<Category> getByPage(String name, Integer page, Integer pageSize, Integer type);

    Integer update(Category category);

    Integer save(CategoryDTO categoryDTO);

    Integer delete(Long id);

    List<Category> getByType(Integer type);
}
